package mao.exaimnation.didi;

import java.util.Scanner;

/**
 * @author Totoro
 * @date 2020/9/13
 * @explain:
 */
public class Main1 {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()){
            int n = scanner.nextInt();
            String s = scanner.nextLine();
            StringBuilder builder = new StringBuilder();
            int start = 0;
            while (start+n<s.length()){
                builder.append(new StringBuilder(s.substring(start,start+n)).reverse());
                start+=n;
            }
            builder.append(new StringBuilder(s.substring(start)).reverse());
            System.out.println(builder.toString());
        }
    }
}
